package net.lainiao.reptile;

import net.lainiao.service.service.ReptileindexService;
import net.lainiao.service.service.ReptilemodeinfoService;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/1/9.
 */
@Component
public class ApplicationCommon implements ApplicationContextAware {
    public static ApplicationContext applicationContext;
    @Resource
    public ReptilemodeinfoService reptilemodeinfoService;
    @Resource
    public ReptileindexService reptileindexService;
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ApplicationCommon.applicationContext=applicationContext;
        System.out.println("ApplicationCommon Found ApplicationContext");
        System.out.println("");
    }

}
